import request from '@/utils/request.js'
//登录
export const apilogin = (params) => {

	return request.post('blade-auth/token', params)
}
export const apiccode = (params) => {
	return request.get('blade-auth/captchaNumber?phone=' + params)
}
//企业列表
export const apitCompanyList = () => {
	return request.get("blade-settlement/wx/company/info/getCompanyList")
}

// 企业用户信息
export const apitgetById = (userId) => {
	return request.get("blade-user/wx/mini/user/getById?userId=" + userId)
}
// 企业资金
export const apigetCompanyAssetInfoById = (userId) => {
	return request.get("blade-settlement/wx/company/info/getCompanyAssetInfoById?id=" + userId)
}

// 企业消费概览
export const apigetAllPriceByStatusByTimeType = (params) => {
	return request.get("blade-sale/wx/maintenance/order/getAllPriceByStatusByTimeType", {
		'params': params,
		dataType: "application/x-www-form-urlencoded"
	})
}
//企业ech首页图表
export const apigetGraphList = (params) => {
	return request.get("blade-sale/wx/work/order/getGraphList", {
		'params': params,
		dataType: "application/x-www-form-urlencoded"
	})
}
// 修改密码

export const apiupdateLoginPass = (params) => {

	return request.post('blade-user/wx/mini/user/updateLoginPass', params)
}